import { Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';

/**
 * 商品示例
 */
@Provide()
export class DemoAppShipsService extends BaseService {
  async page(query){
    let sql = `
          select * from demo_ships
          where 1 = 1
          ${this.setSql(
            query.userId,
            'and userId = ?',
            [query.userId]
          )}
      `,
      pageData = this.sqlRenderPage(sql, query);
    return pageData;
  }
}
